package cn.java.threadmodel.pipeline;

/**
 * @author 小石潭记
 * @date 2021/12/18 19:18
 * @Description: ${todo}
 */
public class Test {
    public static void main(String[] args) {
        MyPipeline pipeline = new MyPipeline();
        pipeline.addFirst(new TestHandler2());//添加handler1
        pipeline.addFirst(new TestHandler1());//添加handler2
        for (int i = 0; i < 10; i++) {//提交多个任务
            pipeline.Request("hello" + i);
        }
    }

}
